package com.spring.boot.entity.server;

import java.util.Date;

/**
 * 消息实体类
 *
 * @author 刘骄阳
 * 2021-07-16 20:28
 */
public class Message {

    /**
     * 发送者Id
     */
    private Integer senderId;

    /**
     * 接受者Id
     */
    private Integer acceptId;

    /**
     * 读取状态
     * 0:未读
     * 1:已读
     */
    private Integer status;

    /**
     * 消息
     */
    private String message;

    /**
     * 发送时间
     */
    private Date sendTime;

    public Message() {
    }

    public Message(Integer senderId, Integer acceptId, Integer status, String message, Date sendTime) {
        this.senderId = senderId;
        this.acceptId = acceptId;
        this.status = status;
        this.message = message;
        this.sendTime = sendTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Integer getSenderId() {
        return senderId;
    }

    public void setSenderId(Integer senderId) {
        this.senderId = senderId;
    }

    public Integer getAcceptId() {
        return acceptId;
    }

    public void setAcceptId(Integer acceptId) {
        this.acceptId = acceptId;
    }

    public Date getSendTime() {
        return sendTime;
    }

    public void setSendTime(Date sendTime) {
        this.sendTime = sendTime;
    }
}
